package com.example.demospring5.primary.config;

import com.example.demospring5.primary.definebean.FirstBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Author ifredomvip@gmail.com
 * @Date 2022/8/1 11:45
 * @Version 1.0.0
 * @Description
 **/

@Configuration
@ComponentScan("com.example.demospring5.definebean")
public class ConfigurationBean {

    /**
     * 得到第一个豆
     *
     * @return {@link FirstBean}
     * //
     */
    @Bean
    public FirstBean getFirstBean(){
        return  new FirstBean();
    }

    public FirstBean getOtherBean(){
        return  new FirstBean();
    }
}
